package com.alks.entity.data.entity;

import com.alks.entity.deserializer.LocalDateTimeDeserialize;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import javax.validation.constraints.NotBlank;
import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.List;

/**
 * @author: chen
 * @date: 2024/11/12
 * @description:
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("PC_FINISH_COLLECT_DETAIL")
@ApiModel(value="成品收集详情实体类", description="")
public class PcFinishCollectDetail implements Serializable   {

    @TableId(value = "id",type = IdType.AUTO)
    private Long id;

    @ApiModelProperty(value = "公司ID")
    private String companyId;

    @JsonDeserialize(using = LocalDateTimeDeserialize.class)
    private LocalDateTime collectTime;

    @ApiModelProperty(value = "收发类型")
    private String collectType;

    @ApiModelProperty(value = "指令")
    @NotBlank(message = "指令不能为空")
    private String lotNo;

    @ApiModelProperty(value = "线别")
    private String line;

    private Integer groupNo;

    private String packType;

    private Integer caseQty;

    @ApiModelProperty(value = "入库量")
    private Integer pairQty;

    private String sysUser;

    @ApiModelProperty(value = "操作时间")
    @JsonDeserialize(using = LocalDateTimeDeserialize.class)
    private LocalDateTime sysDate;

    private String reseller;

    private String area;

    private String slipNo;

    private String poNo;

    @ApiModelProperty(value = "订单量")
    private Integer orderQty;

    @ApiModelProperty(value = "品牌")
    private String custom;

    @ApiModelProperty(value = "型体")
    private String style;

    @ApiModelProperty(value = "出库量")
    private Integer outQty;

    private Integer failQty;

    @ApiModelProperty(value = "客人交期")
    @JsonDeserialize(using = LocalDateTimeDeserialize.class)
    private LocalDateTime deliveryDate;

    @JsonIgnore
    @ApiModelProperty(value = "完成状态")
    private String finish;

    @JsonIgnore
    private String remark;

    private List<PcFinishCollectDetail> packTypes;

    @ApiModelProperty(value = "部门ID")
    private String deptNo;

    private String customPo;

    private String developmentNo;

    private int outDept;

    @JsonDeserialize(using = LocalDateTimeDeserialize.class)
    private LocalDateTime beginDate;

    @JsonDeserialize(using = LocalDateTimeDeserialize.class)
    private LocalDateTime endDate;

    private String invoiceNo;

    private String containerNo;

    @ApiModelProperty(value = "海关编码")
    private String customsCode;
}
